﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:System="clr-namespace:System;assembly=mscorlib">

  <!-- Defines -->

  <System:String x:Key="ApplicationName">WINSOURCE</System:String>

  <!-- Color styles -->
    
  <Color x:Key="BackgroundColor">#f9f9f9</Color>
  <Color x:Key="RedColor">#fe0000</Color>
    
  <SolidColorBrush x:Key="RedBrush"
                   Color="#ec1000" />

    <SolidColorBrush x:Key="TextBrush"
                   Color="Black" />

    <Style x:Key="TextBlockBaseStyle"
         TargetType="TextBlock">
        <Setter Property="FontFamily"
            Value="{StaticResource PhoneFontFamilyNormal}" />
        <Setter Property="FontSize"
            Value="{StaticResource PhoneFontSizeNormal}" />
        <Setter Property="Margin"
            Value="{StaticResource PhoneHorizontalMargin}" />
    </Style>

    <Style x:Key="TextBlockBlackStyle"
         TargetType="TextBlock"
         BasedOn="{StaticResource TextBlockBaseStyle}">
        <Setter Property="Foreground"
            Value="Black" />
    </Style>

    <Style x:Key="TextBlockSubTitleStyle"
         TargetType="TextBlock">
        <Setter Property="FontFamily"
            Value="{StaticResource PhoneFontFamilyNormal}" />
        <Setter Property="FontSize"
            Value="{StaticResource PhoneFontSizeMedium}" />
        <Setter Property="Foreground"
            Value="{StaticResource RedColor}" />
        <Setter Property="Margin"
            Value="{StaticResource PhoneHorizontalMargin}" />
    </Style>

    <Style x:Key="ButtonStyle"
         TargetType="Button">
        <Setter Property="Background"
            Value="Transparent" />
        <Setter Property="BorderThickness"
            Value="{StaticResource PhoneBorderThickness}" />
        <Setter Property="FontFamily"
            Value="{StaticResource PhoneFontFamilySemiBold}" />
        <Setter Property="FontSize"
            Value="{StaticResource PhoneFontSizeMediumLarge}" />
        <Setter Property="Padding"
            Value="10,3,10,5" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid Background="Transparent">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver" />
                                <VisualState x:Name="Pressed" />
                                <VisualState x:Name="Disabled" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>

                        <Border x:Name="ButtonBackground"
                    BorderThickness="{TemplateBinding BorderThickness}"
                    Background="{StaticResource RedBrush}"
                    CornerRadius="0"
                    Margin="{StaticResource PhoneTouchTargetOverhang}"
                    BorderBrush="Black">

                            <ContentControl x:Name="ContentContainer"
                              ContentTemplate="{TemplateBinding ContentTemplate}"
                              Content="{TemplateBinding Content}"
                              Foreground="White"
                              HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                              Padding="{TemplateBinding Padding}"
                              VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />

                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>